package javahomework1;

public class CoffeeBrewer extends Product
{
	private String model;
	private String waterSupply;
	private int numberOfCups;
public CoffeeBrewer(String initialCode,String initialDescription,double initialPrice,String initialModel,String initialWatersupply,int initialNumberofcups)
{
	super(initialCode,initialDescription,initialPrice);
	this.model=initialModel;
	this.waterSupply=initialWatersupply;
	this.numberOfCups=initialNumberofcups;
}
public String getModel()
{
	return model;
}
public String getWaterSupply()
{
	return waterSupply;
}
public int getNumberOfCups()
{
	return numberOfCups;
}
public String toString()
{
	return getCode()+"_"+getDescription()+"_"+getPrice()+"_"+model+"_"+waterSupply+"_"+numberOfCups;
}
}
